package com.shujia.mvc2;

import com.shujia.mvc2.controller.UserController;

import java.io.InputStream;
import java.util.Scanner;

public class TestRegister {
    public static void main(String[] args) {

        //1、输入用户名和密码


        //控制台输入流
        InputStream in = System.in;

        //包装流
        Scanner scanner = new Scanner(in);

        System.out.println("请输入用户名");
        String usernnmae = scanner.next();

        System.out.println("请输入密码");
        String password = scanner.next();


        System.out.println("请确认密码");
        String password1 = scanner.next();

        System.out.println(usernnmae + "\t" + password + "\t" + password1);


        UserController demo1Controller = new UserController();
        String register = demo1Controller.register(usernnmae, password, password1);
        System.out.println(register);
    }
}
